import React, { Component } from 'react'
import { Route, BrowserRouter, Redirect, Switch } from 'react-router-dom'
import Home from '@/pages/Home'
import Login from '@/pages/Login'
export default class App extends Component {
  render () {
    return (
      <BrowserRouter>
        <Switch>
          <Redirect exact from='/' to='/login'></Redirect>
          <Route path='/home' component={ Home }></Route>
          <Route path='/login' component={ Login }></Route>
        </Switch>
      </BrowserRouter>
    )
  }
}
